home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 2 / Geek_Gadgets_2_2352.bin / lists / ade-gcc.archive.9602.gz / ade-gcc.archive.9602 / 000000_owner-ade-gcc_Thu Feb 1 07:59:27 1996.msg next >
Internet Message Format  |  1996-02-28  |  4KB

  1. Return-Path: <owner-ade-gcc>
  2. Received: by fishpond (Smail3.1.29.1 #57)
  3.     id m0thyaK-000gXXa; Thu, 1 Feb 96 07:57 EST
  4. Sender: owner-ade-gcc
  5. Received: from arbi.informatik.uni-oldenburg.de by fishpond with smtp
  6.     (Smail3.1.29.1 #57) id m0thyaG-000gXWC; Thu, 1 Feb 96 07:57 EST
  7. Received: by arbi.informatik.uni-oldenburg.de (smail3.1.18 + xalias);
  8.     Thu, 1 Feb 96 13:54 CET
  9. Received: by diamant.Informatik.Uni-Oldenburg.DE (Smail3.1.29.1)
  10.     id <m0thyS5-0004wcC>; Thu, 1 Feb 96 13:49 MET
  11. Received: by rubin.Informatik.Uni-Oldenburg.DE (Smail3.1.29.1)
  12.     id <m0thyRw-000DIzC>; Thu, 1 Feb 96 13:49 MET
  13. Message-Id: <m0thyRw-000DIzC@rubin.Informatik.Uni-Oldenburg.DE>
  14. Subject: a BUG again 
  15. To: ade-gcc@amigalib.com (amiga gcc-list)
  16. Date: Thu, 1 Feb 1996 13:48:57 +0100 (MET)
  17. From: Walter Harms <Walter.Harms@arbi.informatik.uni-oldenburg.de>
  18. X-Mailer: ELM [version 2.4 PL22]
  19. MIME-Version: 1.0
  20. Content-Type: text/plain; charset=ISO-8859-1
  21. Content-Transfer-Encoding: 8bit
  22. Content-Length: 2923      
  23. Sender: owner-ade-gcc@amigalib.com
  24. Precedence: bulk
  25.  
  26.  
  27.  
  28.     as a nasty surprise i found this little bug:
  29.  
  30.  
  31. gcc -m68030  -DAMIGA -DNOGAMMA -DPROTOTYPE__P  -DRETSIGTYPE=void -DSTRNCASECMP -DPIPES -save-temps -v show.c
  32. Reading specs from /gnu/lib/gcc-lib/m68000-unknown-amigaos/2.7.2/specs
  33. gcc version 2.7.2
  34.  /gnu/lib/gcc-lib/m68000-unknown-amigaos/2.7.2/cpp -lang-c -v -undef -D__GNUC__=2 -D__G
  35.  NUC_MINOR__=7 -Dmc68000 -Damiga -Damigados -DMCH_AMIGA -DAMIGA -D__mc68000__ -D__amiga_
  36.  _ -D__amigados__ -D__MCH_AMIGA__ -D__AMIGA__ -D__mc68000 -D__amiga -D__amigados -D__MCH
  37.  _AMIGA -D__AMIGA -Asystem(amigados) -Acpu(m68k) -Amachine(m68k) -Dmc68030 -DAMIGA -DNOG
  38.  AMMA -DPROTOTYPE__P -DRETSIGTYPE=void -DSTRNCASECMP -DPIPES show.c show.i
  39.  GNU CPP version 2.7.2 (68k, MIT syntax)
  40.  #include "..." search starts here:
  41.  #include <...> search starts here:
  42.   /gnu/local/include
  43.    /gnu/m68000-unknown-amigaos/include
  44.     /gnu/lib/gcc-lib/m68000-unknown-amigaos/2.7.2/include
  45.      /gnu/os-include
  46.       /gnu/include
  47.       End of search list.
  48.        /gnu/lib/gcc-lib/m68000-unknown-amigaos/2.7.2/cc1 show.i -mfixedstack -quiet -dumpbase
  49.        show.c -m68030 -version -o show.s
  50. GNU C version 2.7.2 (68k, MIT syntax) compiled by GNU C version 2.7.2.
  51. In file included from ansichek.h:36,
  52.     from plot.h:57,
  53.     from show.c:58:
  54.     /gnu/include/stdio.h:252: iterator has no initial value
  55.     In file included from stdfn.h:24,
  56.     from plot.h:301,
  57.     from show.c:58:
  58. /gnu/include/string.h:65: iterator has no initial value
  59. Illegal instruction - /gnu/lib/gcc-lib/m68000-unknown-amigaos/2.7.2/cc1
  60. gcc: Internal compiler error: program cc1 got fatal signal 4
  61. make: *** [show.o] Error 1
  62.                                         
  63.  
  64.     the problem was caused due an little error on my side
  65.  
  66. this is the relevat part in show.c. you see USERDATA is used to call usedata[] in
  67. existens unfortunaly i forgot the define -DUSERDATA 
  68.  
  69. void                /* used by plot.c */
  70. show_version()
  71. {
  72. extern char version[];
  73. extern char patchlevel[];
  74. extern char date[];
  75. extern char copyright[];
  76. extern char bug_email[];
  77. extern char help_email[];
  78. #ifdef USERDATA
  79. extern char userdata[];
  80. #endif
  81.     fprintf(stderr, "\n\t%s\n\t%sversion %s\n", PROGRAM, OS, version); 
  82.     fprintf(stderr, "\tpatchlevel %s\n",patchlevel);
  83.     fprintf(stderr, "\tlast modified %s\n", date);
  84.     fprintf(stderr,"\n\t%s", copyright);
  85.     fprintf(stderr, "\n\tThomas Williams, Colin Kelley and many others");
  86.     fprintf(stderr, "\n");
  87.     fprintf(stderr, "\n\tSend comments and requests for help to %s", help_email);
  88.     fprintf(stderr, "\n\tSend bugs, suggestions and mods to %s\n", bug_email);
  89. #ifdef USERDATA
  90.     fprintf(stderr, "\tcomment: %s\n",userdata);
  91. #endif
  92.  
  93. }
  94.  
  95. but in an other file this was correctly defined
  96.  
  97. <excerpt from version.c>
  98.  
  99. #ifdef USERDATA
  100. char userdata[] = USERDATA;
  101. #endif
  102.  
  103. the problem is gone if you define the USERDATA for show.c. actualy i dont see the 
  104. underlaying problem maybe somebody could fix this. may be the problem arises only
  105. when called from a makefile, btw the stack was 300k.
  106.  
  107. walter
  108.  
  109.